package nz.co.doherty.gwtpbreadcrumbs.shared.rpc.customer;


import nz.co.doherty.gwtpbreadcrumbs.shared.entity.Customer;

import com.philbeaudoin.gwtp.dispatch.shared.Action;
import com.philbeaudoin.gwtp.dispatch.shared.ActionImpl;

public class CustomerCreateAction implements Action<CustomerCreateResult> {
	
	private Customer customer;
	
	private CustomerCreateAction() {}
	
	public CustomerCreateAction(Customer customer) {
		this.customer = customer;
	}

	public Customer getCustomer() {
		return this.customer;
	}

	@Override
	public String getServiceName() {
		return ActionImpl.DEFAULT_SERVICE_NAME + "CustomerCreate";
	}

	@Override
	public boolean isSecured() {
		// TODO Auto-generated method stub
		return false;
	}
}
